<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body><form action="postReg.php" method="post">
    <table align="center" style="border-collapse:collapse " border="1" cellpadding="10" bordercolor="gray"
           cellspacing="0">
        <tr>
            <td align="center">用户名</td>
            <td align="left">
                <input name="username">
            </td>
        </tr>
        <tr>
            <td align="center">密码</td>
            <td align="left"><input type="password" name="pw"></td>
        <tr>
            <td align="center">重复 密码</td>
            <td align="left"><input type="password" name="cpw"></td>
        </tr>
        <tr>
            <td align="center">信箱</td>
            <td align="left"><input name="email"></td>
        </tr>
        <tr>
            <td align="center">性别</td>
            <td align="left">
                <input type="radio" name="sex" value="1" checked>男
                <input type="radio" name="sex" value="0">女
            </td>
        </tr>
        <tr>
            <td align="center">爱好</td>
            <td align="left">
                <input type="checkbox" name="fav[]" value="听音乐">听音乐
                <input type="checkbox" name="fav[]" value="玩游戏">玩游戏
                <input type="checkbox" name="fav[]" value="踢足球">踢足球
            </td>
        </tr>
        <tr>
            <td align="center"><input type="submit" value="提交"></td>
            <td align="left"><input type="reset" value="重置"></td>
        </tr>
    </table>
</form>

</body>
</html>